//
//  UIImageView+sd_image.m
//  CNKICommunity
//
//  Created by wei on 17/2/22.
//  Copyright © 2017年 CNKI. All rights reserved.
//

#import "UIImageView+sd_image.h"

@implementation UIImageView (sd_image)
-(void)setHeader:(NSString *)url
{
    UIImage *placeHolderImage = [[UIImage imageNamed:@"haha.png"] circleImage];
    [self sd_setImageWithURL:[NSURL URLWithString:url] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        self.image = image ? [image circleImage]: placeHolderImage;
    }];
}
@end
